package server.business.task.handler;

import server.ScriptEnum;
import server.ServerEngin;
import server.ServerHandler;
import server.business.task.ITaskScript;
import server.commonData.User;

import com.core.initialize.Message;
import com.google.protobuf.GeneratedMessage;

/**
 * 任务列表请求
 * @author King
 *
 */
public class TaskListHandler extends ServerHandler {

	@Override
	public Class<? extends GeneratedMessage> initBodyClass() {
		return null;
	}

	@Override
	protected void handler(Message msg, User user) throws Throwable
	{
		ITaskScript script = ServerEngin.getInstance().getScriptM().getScript(ScriptEnum.TASK_SCRIPT);
		script.refreshTaskListClient(user);
	}
}
